<template>
  <div>
    <!-- 语法： :style="{属性名:属性值}" -->
    <p :style="{color:pinkStr}">俺是p标签</p>
  </div>
</template>

<script>
export default {
  name: 'CodeApp',

  data() {
    return {
      pinkStr:'red',
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>

</style>